//gtc
import { connect } from 'react-redux';
import MyMusic from '../../components/myMusic';

import {
    getMyMusicDefaultAction,
    getMyMusicMvListAction,
    getMyMusicSongListAction,
} from '../../actions/myMusic';

const mapStateToProps = (state,onwProps)=>{

    return {
        getMyMusicDefault:state.getMyMusicDefaultReducer.data||{},
        getMyMusicMvList:state.getMyMusicMvListReducer.data||{},
        getMyMusicSongList:state.getMyMusicSongListReducer.data||{},
    }

};

const mapDispatchToProps = (dispatch,onwProps)=>{

    return {
        getMyMusicDefaultFunc:(data)=>{
            dispatch(getMyMusicDefaultAction(data))
        },
        getMyMusicMvListFunc:(data)=>{
            dispatch(getMyMusicMvListAction(data))
        },
        getMyMusicSongListFunc:(data)=>{
            dispatch(getMyMusicSongListAction(data))
        },
    }
    
};

export default connect(mapStateToProps,mapDispatchToProps)(MyMusic)


